<h1>Listing articles</h1>

<table>
  <tr>
    <th>id</th>
    <th>Title</th>
   
  </tr>

<% @articles.each do |article| %>
  <tr>
    <td><%=article.id %></td>
    <td><%=h article.title %></td>
    <td><%= link_to 'Show', news_path(article) %></td>
    <td><%= link_to 'Edit', edit_article_path(article) %></td>
    <td><%= link_to 'Destroy', article, :confirm => 'Are you sure?', :method => :delete %></td>
  </tr>
<% end %>
</table>

<br />

<%= link_to 'New article', new_article_path %>